Skip to main content
Version: 4.0

Get Algorithm Runtime Model

Path
http://{supOS ip:port}/open-api/bigdata-runtime/v2/models
Query parameter
  • name: Model name. Fuzzy match based on the set name.
  • pageNo: Page number.
  • pageSize: Items on the page.
Response
  • 200: Successful.
{
"list": [
{
"id": "uuiduuiduuid",
"name": "model-1",
"description": "linear regression training model",
"code": "Xsdfsfd24dfsadfsaf",
"inParams": "[{\"name\":\"a\",\"dataType\":\"Integer\",\"description\":\"a\"},{\"name\":\"y\",\"dataType\":\"String\",\"description\":\"y\"}]",
"outParams": "[{\"name\":\"pre\",\"dataType\":\"Double\",\"description\":\"a\"}]",
"createdTime": 15612344562000,
"updateTime": 15612344562000
}
],
"pagination": {
"total": 100,
"pageSize": 20,
"current": 1
}
}
  • 400
{
"code": 40000404,
"message": "unknown error"
}

Get Runtime Model Version List

Path
http://{supOS ip:port}/open-api/bigdata-runtime/v2/models/{modelCode}/versions

modelCode: Model code. Required. String.

Response
  • 200: Successful.
{
"list": [
{
"id": "uuiduuiduuid",
"description": "upgrade model precision to 99%",
"modelCode": "Xsdfsfd24dfsadfsaf",
"version": "v1.0",
"createdTime": 15612344562000
}
]
}
  • 400
{
"code": 40000404,
"message": "unknown error"
}

Call Runtime Model

Path
http://{supOS ip:port}/open-api/bigdata-runtime/v2/models/{modelCode}/versions/{modelVersion}/invocations
  • modelCode: Model code. Required. String.
  • modelVersion: Model version. Required. String.
Request body
{
"outerId": "uuiduuiduuid", //required. ID externally input
"inputData": [ //input data of the model. Required. Array.
[
0
]
]
}
Response

200: Successful.

{
"outerId": "uuiduuiduuid", //running task ID
"data": [
[
0
]
]
}